/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 收件人信息维护 (OEM)

// 查询	/recipient/oem/queryList
export const queryList = params => axios.post(`${SERVER.WHOLESALES}/recipient/oem/queryList`, params);

// 新增 /recipient/oem/saveRecipient
export const saveData = params => axios.post(`${SERVER.WHOLESALES}/recipient/oem/saveRecipient`, params);
//  导出	/recipient/oem/exportRecipient
export const exportExcel = params =>
  axios.post(`${SERVER.WHOLESALES}/recipient/oem/exportRecipient`, params, {
    responseType: 'blob'
  });

//删除 /recipient/oem/deleteByList
export const deleteByList = params => axios.post(`${SERVER.WHOLESALES}/recipient/oem/deleteByList`, params);

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
